package com.gotloop.dto;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * Error object send to jsp pages and javascript client.
 * @author jibhaine
 *
 */
@XmlRootElement
public class ErrorDTO  extends AbstractDTO implements Serializable {
	
	/**
	 * generated serial uid.
	 */
	private static final long serialVersionUID = 2927950848447851705L;

	/**
	 * Error code.
	 */
	private String code;
	
	/**
	 * Error message.
	 */
	private String message;

	/**
	 * Getter for code.
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * Getter for code.
	 * @param pCode the code to set
	 */
	public void setCode(String pCode) {
		this.code = pCode;
	}

	/**
	 * Getter for message.
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * Getter for message.
	 * @param pMessage the message to set
	 */
	public void setMessage(String pMessage) {
		this.message = pMessage;
	}
	
}
